<?php $teacher = $sf_user->getTeacherObject() ?>
<?php $g_user = $sf_user->getGuardUser() ?>

<div class="menu">
    <ul>
        <?php if ($teacher && $teacher->getIsManager() && !$sf_user->hasAttribute('teacher_mode')) { ?>
            <li class="menu_item"><?php echo link_to(__('Add a Teacher'), 'teacher/add') ?></li>
            <li class="menu_item"><?php echo link_to(__('Program Assignment List'), 'assignment/index') ?></li>
            <li class="menu_item"><?php echo link_to(__('School Teachers'), 'teacher/managerTeachers') ?></li>
            <li class="menu_item"><?php echo link_to(__('Private messages'), 'private_messages/show') ?></li>
        <?php } elseif ($teacher && $teacher->getIsTrainer() && !$sf_user->hasAttribute('teacher_mode')) { ?>
            <li class="menu_item"><?php echo link_to(__('Programs'), 'program/trainerPrograms') ?></li>
        <?php } else if ($sf_user->hasAttribute('teacher_mode')) { ?>
            <li class="menu_item"><?php echo link_to(__('Home page'), 'home/teacher') ?></li>
            <li class="menu_item"><a onclick="" id="tab_link_1" href="<?php echo url_for('home/teacher?component=assigned_programs') ?>">البرامج المرشح لها</a></li>
            <li class="menu_item"><a onclick="" id="tab_link_2" href="<?php echo url_for('home/teacher?component=opened_night_programs') ?>">البرامج المسائية المفتوحة</a></li>
            <li class="menu_item"><a onclick="" id="tab_link_3" href="<?php echo url_for('home/teacher?component=long_term_programs') ?>">البرامج المفتوحة الطويلة</a></li>            

        <?php } ?>
        <li class="menu_item"><?php echo link_to(__('Logout'), '@sf_guard_signout') ?></li>
    </ul>
</div>

